package edu.zqu.instructionalMatters.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.zqu.instructionalMatters.project.entity.PersonalSchedule;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 何文东
 * @Date 2020-07-03
 * @Description: 个人日程表 - Mapper 接口
 * @Version 1.0
 */
public interface PersonalScheduleMapper extends BaseMapper<PersonalSchedule> {
    @Select("<script>" + "select * from personal_schedule where user_id = #{userId}" +
            " <if test = 'theDate != null'>" +
            " and the_date = #{theDate}" +
            " </if>" + "</script>")
    public List<PersonalSchedule> findAll(PersonalSchedule personalSchedule);
}
